Skip to content

Fix unattended inspection, incomplete reviews and model overrides - #17

Merged
AppSolves merged 1 commit into
mainfrom
fix/codex-inspection-and-model
Nov 14, 2026
Merged

AppSolves merged 1 commit into
mainfrom
fix/codex-inspection-and-model

Conversation

@AppSolves

Copy link
Copy Markdown
Owner

Fix the actual unattended execution path: thread/start used untrusted, so pinned Codex prompted for unmatched inspection commands while our RPC client rejected those approvals. Use never under the unchanged external Docker sandbox. Continue rejecting every client-side approval/tool/permission request; denied/missing inspection fails rather than becoming a clean review.

Require complete context and validate the exact head, structured review and changed-line locations inside the isolated entrypoint and again at the trusted host. Inconclusive/quarantined/truncated/incomplete results fail the job even when safe fallback recording succeeds. Keep separate protected COMMENT publication and all OIDC, credential, network, filesystem and merge boundaries.

Add the explicitly requested per-review --model override (both flag forms, quoting/order, catalog validation, selected-model effort validation, command > repository > default precedence). Existing snapshots remain compatible and model selection is included in the existing quota/idempotency path; no schema or permission change.

Validation: Node 24 check (148 tests/types/lint/build), independent clean checkout, real workerd/D1, 41 targeted execution/security/Worker tests, Actionlint, Docker image, audit/strict image scan and Wrangler dry-run. Actual Codex 0.169.0 code-mode exec executes file reads and isolation probes. Restoring only untrusted reproduces the blocked approval; never verifies exact diff/base/head/instruction bytes by nonce-specific hashes. Finding/clean/incomplete/no-inspection paths and safe separate publishing are covered.

Inference replies in Docker are scripted, so this does not claim live AI defect recognition. The opt-in real-provider harness now requires a valid changed-line finding on the same introduced authorization bug. It was not run: an authorized owner credential context and approved production rollout remain external acceptance gates. No paid inference, deployment, reconnect, secret change or merge performed.

Runner and Worker source both change. After normal approval/merge, use the actual merged source SHA in Worker trust + exact backend test and the protected caller; provisional pin drafts remain blocked until aligned. Keep automatic merge disabled and run fresh credential-only diagnostics before a separately authorized advisory review. No D1/session migration.

@AppSolves
AppSolves merged commit 3717767 into main Nov 14, 2026
4 checks passed
@AppSolves
AppSolves deleted the fix/codex-inspection-and-model branch November 14, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant